package com.guiji.text2video.job.task;

import com.guiji.text2video.job.domain.Text2videoJob;
import com.guiji.text2video.job.mapper.Text2videoJobMapper;
import com.guiji.text2video.job.service.FeignJob;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Copyright (C), 2018-2021
 * @FileName: ComitZhiHuNews
 * @Author: scl
 * @Date: 2021/10/25 14:52
 * @Description: 提交知乎日报任务
 */

@Component("comitZhiHuNews")
public class ComitZhiHuNews {
    private static final Logger logger = LoggerFactory.getLogger(ComitZhiHuNews.class);

    @Autowired
    FeignJob feignJob;

    public void comit() {
        Text2videoJob job = new Text2videoJob();
        job.setBackupText("知乎日报");
        //数字人，非必要
        job.setBackup1("susu");
        job.setBackup5("358");
        //优先级，非必要
        job.setRetrySize(12);
        job.setTtsSpeaker("zh-CN-YunxiNeuralWWWAssistant");
        job.setTtsRate(1);
        feignJob.jobDo(job);
        logger.info("提交《更新-数字人配置》任务一次！");
    }

}